class Clock():
    id=None
    price=None
    def ring(self,time):
        import winsound
        winsound.Beep(2000,time)
clock1=Clock()
clock2=Clock()
clock1.id=30000
clock1.price=100
clock1.ring(500)

clock2.id=31111
clock2.price=100
clock2.ring(400)